<div class="bg" [ngStyle]="tagData.cssStyle | styleFilter">
  <ng-container *ngIf="tagData.name.indexOf('noBg')> -1; else elseTemplate">

    <div class="content-nobg">
      <div class="content-l">
        <p class="title" [ngStyle]="tagData.data.firstRowLeft?.firstText?.cssStyle | styleFilter">
          {{tagData.data.firstRowLeft?.firstText?.label}}</p>
        <p class="status" [ngStyle]="tagData.data.secondRowLeft?.firstText?.cssStyle | styleFilter">
          {{tagData.data.secondRowLeft?.firstText?.label}}</p>
        <p class="status" [ngStyle]="tagData.data.secondRowLeft?.secondText?.cssStyle | styleFilter">
          {{tagData.data.secondRowLeft?.secondText?.label}}</p>
        <p class="info" [ngStyle]="tagData.data.thirdRowLeft?.firstText?.cssStyle | styleFilter"
          [innerHTML]="tagData.data.thirdRowLeft?.firstText?.label | parseStyle"> </p>
      </div>

      <p class="btn-r" *ngIf="tagData.data.buttonLink?.label"
        [ngStyle]="tagData.data.buttonLink?.cssStyle | styleFilter" appDebounceClick (debounceClick)="openPage(tagData.data.buttonLink)">
        {{tagData.data.buttonLink.label}}</p>
    </div>
  </ng-container>
  <ng-template #elseTemplate>
    <div class="bg-color" [ngStyle]="tagData.data.cssStyle | styleFilter"></div>
    <div class="content-bg">
      <img *ngIf="tagData.data.img?.imgUrl" src="{{tagData.data.img?.imgUrl}}" alt="" class="bg-img">
      <p class="title" [ngStyle]="tagData.data.firstRowLeft?.firstText?.cssStyle | styleFilter">
        {{tagData.data.firstRowLeft?.firstText?.label}}</p>
      <p class="status" [ngStyle]="tagData.data.secondRowLeft?.firstText?.cssStyle | styleFilter">
        {{tagData.data.secondRowLeft?.firstText?.label}}</p>
      <p class="status" [ngStyle]="tagData.data.secondRowLeft?.secondText?.cssStyle | styleFilter">
        {{tagData.data.secondRowLeft?.secondText?.label}}</p>
      <p class="info" [ngStyle]="tagData.data.thirdRowLeft?.firstText?.cssStyle | styleFilter"
        [innerHTML]="tagData.data.thirdRowLeft?.firstText?.label | parseStyle"> </p>
      <div class="btn" *ngIf="tagData.data.buttonLink?.label"
        [ngStyle]="tagData.data.buttonLink?.cssStyle | styleFilter" appDebounceClick (debounceClick)="openPage(tagData.data.buttonLink)">
        {{tagData.data.buttonLink.label}}<p class="shadow" [ngStyle]="tagData.data.buttonLink?.cssStyle | styleFilter">
        </p>
      </div>
    </div>
  </ng-template>


</div>